namespace CSharpPro;

public class Phone
{
    public string Brand { get; set; }
    public int Weight { get; set; }
    public long Camera { get; set; }
    public int Price { get; set; }
    public Phone(string brand, int weight, long camera, int price)
    {
        Brand = brand;
        Weight = weight;
        Camera = camera;
        Price = price;
    }
    public void PrintPhoneInfo()
    {
        Console.WriteLine("手机信息如下：");
        Console.WriteLine($"品牌(brand)：{Brand}");
        Console.WriteLine($"重量(weight)：{Weight}g");
        Console.WriteLine($"后置摄像头像素(camera)：{Camera}");
        Console.WriteLine($"价格(price)：{Price}元");
    }
}
    
    